(Vread_file_name_function, Vread_file_name_predicate):
authorKim F. Storm <storm@cua.dk>
Mon, 27 May 2002 22:05:00 +0000 (22:05 +0000)
committerKim F. Storm <storm@cua.dk>
Mon, 27 May 2002 22:05:00 +0000 (22:05 +0000)
commit53e54589880428d81372aa331524336211762b74
tree4eefe9297e7f932ef5bc21c6716a584a1b7394f9
parentd6125ed564ccea8e2c3d466e294ecd088bf46afd
(Vread_file_name_function, Vread_file_name_predicate):
New variables.
(syms_of_fileio): DEFVAR_LISP them.
(read_file_name_cleanup): New unwind function.
(Fread_file_name_internal): Only return completions satifying
Vread_file_name_predicate.  Temporarily unwind protect and rebind
default-directory while checking completions against the predicate.
(Fread_file_name): Added PREDICATE argument.  Specbind it to
Vread_file_name_predicate during completion.
Call Vread_file_name_function to read the file name if non-nil.
src/fileio.c